<?php
/**
 * POD
 *
 * ${license}
 *
 * @category	POD
 * @package		POD_Office
 * @copyright	${copyright}
 * @license		${license}
 * @version		${$version}
 * @author		Ziv Perry (http://zivperry.com)
 */

class POD_Office_Text extends POD_Office_Element implements POD_Office_Body_Content {
	
	/**
	 * @param bool $global
	 * @return DOMAttr
	 */
	public function setGlobal($global) {
		return $this->setAttribute('text:global', (bool)$global);
	}

	/**
	 * @param bool $useSoftPageBreak
	 * @return DOMAttr
	 */
	public function setUseSoftPageBreaks($useSoftPageBreak) {
		return $this->setAttribute('text:use-soft-page-breaks', (bool)$useSoftPageBreak);
	}
	
	/**
	 * @param POD_Office_Text_ContentMain $content
	 */
	public function addMain(POD_Office_Text_ContentMain $content) {
		// TODO: implement me, how to handle choise???
		/*
	    <choice>
	        <zeroOrMore>
	            <ref name="text-content"/>
	        </zeroOrMore>
	        <group>
	            <ref name="text-page-sequence"/>
	            <zeroOrMore>
	                <choice>
	                    <ref name="draw-a"/>
	                    <ref name="shape"/>
	                </choice>
	            </zeroOrMore>
	        </group>
	    </choice>
	    */
	}
	
	public function setPrelude() {
		// TODO: office-text-content-prelude
		// NOTE: order is significant!!!
	}
	
	public function setEpilogue() {
		// TODO: office-text-content-epilogue
		// NOTE: order is significant!!!
	}
}